https://bugzilla.gnome.org/show_bug.cgi?id=765061
pipeline = cogl_pipeline_copy (shadow_pipeline_template);
cogl_pipeline_set_layer_texture (pipeline, 0, texture);
- cogl_object_unref (texture);
+
+ if (texture)
+ cogl_object_unref (texture);
+
return pipeline;
}
cairo_image_surface_get_stride (surface),
cairo_image_surface_get_data (surface),
NULL));
- clutter_texture_set_cogl_texture (bind->texture, texdata);
- cogl_object_unref (texdata);
+
+ if (texdata)
+ {
+ clutter_texture_set_cogl_texture (bind->texture, texdata);
+ cogl_object_unref (texdata);
+ }
clutter_actor_set_opacity (CLUTTER_ACTOR (bind->texture), 255);
}